package com.nbpt.edu.commercesites.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import pojo.Good;
import pojo.Staff;
import pojo.vo.StaffVo;

@Repository
public interface StaffMapper extends BaseMapper<Staff> {
    @Delete("DELETE FROM staff WHERE u_id = #{u_id}")
    int DeleteById(@Param("u_id") Long id);
    IPage<StaffVo> getCustomerWithPosition(IPage<StaffVo> page);
    @Delete("DELETE FROM staff WHERE u_id = #{uId}")
    void deleteByGoodIdPhysical(Long gId);
}
